package cn.bookcycle.report.controller;

import cn.bookcycle.base.mapper.DailyReportMapper;
import cn.bookcycle.base.mapper.GroupMapper;
import cn.bookcycle.base.mapper.UserMapper;
import cn.bookcycle.base.pojo.PO.Group;
import cn.bookcycle.base.pojo.PO.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ReportController
 *
 * @author Flynn
 * @version 1.0
 * @description TODO
 * @email liufenglin@163.com
 * @date 2019/3/23
 */
@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/user")
    public Object testMethod() {
        User user = new User();
        user.setUserId(13434L);
        user.setUserName("Tom");
        user.setUserWechatId("sdfsdf");
        user.setUserWechatName("sdf");
        user.setUserType(1);
        userMapper.insert(user);
        return "OK";
    }

}
